package ${package.Mapper};

import ${package.Entity}.${entity};
import ${superMapperClassPackage};
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
/**
 * ${table.name} ${table.comment} Mapper 接口
 * @author ${author}
 * @date ${date}
 * @version V1.0.0
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
@Mapper
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
<#--    /**-->
<#--    * sql查询 select-->
<#--    * @author ${author}-->
<#--    * @date ${date}-->
<#--    * @version V1.0.0-->
<#--    * @param sql 查询sql-->
<#--    * @return List<${entity}>-->
<#--    */-->
<#--    @Select(" ${r'${selectSql}'} ")-->
<#--    List<${entity}> selectSql(@Param("selectSql") String sql);-->
    /**
    * 增 insert into 表
    * 删 delete from 表
    * 改 update 表
    * @author ${author}
    * @date ${date}
    * @version V1.0.0
    * @param sql 查询sql
    * @return boolean
    */
    @Update(" ${r'${dmlSql}'} ")
    int dmlSql(@Param("dmlSql") String sql);
}
</#if>
